TARGET=apm_test
CXX=g++ -g -Wall -MMD
CPPFLAGS=-I/usr/include/libxml2
LIBS=-lxml2 -pthread -lpcap -lnet

CPPFLAGS+=-DDEBUG

OBJS=apm_test.o \
	 TestCase.o \
	 TestCaseManager.o \
	 BaseThread.o \
	 ReceiveResult.o \
	 send_pcap.o \
	 send_pcap_thread.o

all:$(TARGET)

$(TARGET): $(OBJS)
	$(CXX) -o $(TARGET) $(OBJS) $(LIBS)

DEPE = ${OBJS:%.o=%.d}
-include $(DEPE)

clean:
	rm -rf $(TARGET) $(OBJS) *.d
